#include "dialoglogin.h"
#include "ui_dialoglogin.h"


DialogLogin::DialogLogin(int* tipoUsuario,QWidget *parent) :
    QDialog(parent),
    ui(new Ui::DialogLogin)
{
    ui->setupUi(this);
    usuarioTipo = tipoUsuario;
}

DialogLogin::~DialogLogin()
{
    delete ui;
}

void DialogLogin::on_uiLoginButtonIngresar_clicked()
{
    //this->~DialogLogin();
    //this->close();

    *usuarioTipo = 2;
    this->close();

}
